Chris Pollett > Old Classes >
CS134

( Print View )

Student Corner:
  [Grades Sec1]
  [Grades Sec2]

  [Submit Sec1]
  [Submit Sec2]

  [Email List Sec1]
  [Email List Sec2]

  [
Lecture Notes]

Course Info:
  [Texts & Links]
  [Topics]
  [Grading]
  [HW Info]
  [Exam Info]
  [Regrades]
  [Honesty]
  [Announcements]

HW Assignments:
  [Hw1]  [Hw2]  [Hw3]
  [Hw4]  [Hw5]

Practice Exams:
  [Mid1]  [Mid2]  [Final]

                           












HW#1 --- last modified March 02 2019 21:05:28..

Solution set.

Due date: Sep 13

Files to be submitted:
  Gauntlet.zip

Purpose: To become familiar with the Pop Framework by modifying the stub game.

Specification:

Your starting point for this homework should be to read through the exercises 3.1-3.11 in the book. These describe how to compile and modify the Pop framework, and in particular, cGameStub to create a simple Space Invader-like game. For this homework, you will create a game called Gauntlet of similar complexity but with a slightly different concept. You can think of Gauntlet as like a poor man's Frogger. The player's motion is constrained to a vertical band in the middle of the screen. The screenshape has been modified into a long vertical shape as in the Space Invader description. The player cannot shoot. Meanwhile, on either side of the vertical band the player's rivals lurk. They try to shoot at the player as he moves up and down in his vertical band. Hitting the player of course takes away some of the player's health. Within the band, props tend to appear at either the top of the screen or the bottom screen. If a player bumps into a prop, it is as if the player ate the prop. Both the player's score and his health should increase. The resources for this game should be changed to reflect the game set-up. In particular, the background screen schould somehow indicate the band the player can move, props should look like food, and the player and rivals characters should be updated. You should edit the String table resource table to change the version of the Pop program and who you are. Finally, given the constraints above your goal is to make the game as playable as possible, by altering things like how food effects health and score, how powerful the bullets are, etc. To do slightly harder stuff, you could have different kinds of food, different kinds of bullets (tracking or non-tracking), different levels. You should turn in a zip file called Gauntlet.zip containing your project file and all its necessary source files and resources. To keep this file small, you should not turn in executables (so run clean before zipping). In your zip file you should also have a file readme.txt which contains a description of the cool features of your project as well as how to compile and set it up.

Point Breakdown

Departmental coding guidelines for C++ followed. 2pts
Project readme file as described. Project compiles. 2pt
Player cannot shoot. 1pt
Player constrained to a vertical band in the center of the screen.1pt
Screen shape long and narrow like space invader game. 1pt
Rivals can shoot and appear on either side of narrow band1pt
Player loses health if shot.1pt
Props tend to appear at either the top or bottom of the screen in the players band.1pt
Eating the prop makes the player healthier and his score go up.1pt
Background, prop, player, rival and string resources have been updated as described.2pts
Game playability.2pts
Total15pts